package day3

abstract class Person {

  var name:String = ""
  var age:Int = _

  def this(name:String,age:Int) {
    this()
    this.name = name
    this.age = age
  }

  def eat()  // 抽象方法

}
